import { WeaTools } from 'ecCom';

// 获取共享列表
export const getAddShare = params => WeaTools.callApi('/api/doc/share/addShare', 'GET', params);

// 添加共享条件
export const doShareAddSubmit = params => WeaTools.callApi('/api/doc/share/saveShare', 'POST', params);

// 共享可编辑权限
export const canShareAddEdit = params => WeaTools.callApi('/api/doc/share/canEdit', 'GET', params);

// 删除共享条件
export const deleteShare = params => WeaTools.callApi('/api/doc/share/deleteShare', 'GET', params);

// 编辑共享条件确定
export const afterShareSave = params => WeaTools.callApi('/api/doc/save/afterSave', 'GET', params);

// 批量共享check
export const getShareBatchChecks = params => WeaTools.callApi('/api/doc/share/oldShareOperate', 'GET', params);

// 批量共享提交
export const saveShareBatch = params => WeaTools.callApi('/api/doc/share/saveShareBatch', 'POST', params);
